const {config,gulp,rename,assetRev} = require("./gulp.config.js") ;
const {src,dest} = gulp;
const uglify = require('gulp-uglify');
exports.uglifyJs = () =>{
	console.log('js压缩任务开始')
	return src([config.srcPath+'js/**/*.js'])
		.pipe(uglify())
		.pipe(rename({suffix: '.min'}))
		.pipe(assetRev())
		.pipe(dest(config.srcPath+'assets/js'))
}
